package com.weblog.follow.client;



import com.weblog.follow.client.factory.UserFallBackFactory;
import com.weblog.follow.interceptor.FeignInterceptor;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;


/**
 * @author MaoLin Wang
 * @date 2019/9/2215:37
 */
@FeignClient(value = "weblog-user",fallbackFactory = UserFallBackFactory.class,configuration = FeignInterceptor.class)
public interface UserClient {
    /**
     * 根据ids查询粉丝信息集合
     * @param ids 所有粉丝id
     * @return d
     */
    @GetMapping("user/client/fans")
     Result fansList(@RequestParam List<String> ids,@RequestParam List<String>iseach);

    /**
     * 根据focusList查询关注用户信息
     * @param ids 所有关注对象id
     * @return d
     */
    @GetMapping("user/client/focus")
    Result focusList(@RequestParam List<String> ids);
}
